﻿using SqlSugar;
using System;

namespace Model
{
    /// <summary>
    /// user_info 表实体类
    /// </summary>
    [SugarTable("user_info")]
    public class UserInfo
    {
        /// <summary>
        /// 编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public long Id { get; set; }

        /// <summary>
        /// 1：出借人 2：借款人
        /// </summary>
        [SugarColumn(ColumnName = "user_type")]
        public byte UserType { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [SugarColumn(ColumnName = "mobile")]
        public string Mobile { get; set; }

        /// <summary>
        /// 用户密码
        /// </summary>
        [SugarColumn(ColumnName = "password")]
        public string Password { get; set; }

        /// <summary>
        /// 用户昵称
        /// </summary>
        [SugarColumn(ColumnName = "nick_name")]
        public string NickName { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        [SugarColumn(ColumnName = "name")]
        public string Name { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>
        [SugarColumn(ColumnName = "id_card")]
        public string IdCard { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [SugarColumn(ColumnName = "email")]
        public string Email { get; set; }

        /// <summary>
        /// 微信用户标识openid
        /// </summary>
        [SugarColumn(ColumnName = "openid")]
        public string Openid { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        [SugarColumn(ColumnName = "head_img")]
        public string HeadImg { get; set; }

        /// <summary>
        /// 绑定状态（0：未绑定，1：绑定成功 -1：绑定失败）
        /// </summary>
        [SugarColumn(ColumnName = "bind_status")]
        public byte BindStatus { get; set; }

        /// <summary>
        /// 借款人认证状态（0：未认证 1：认证中 2：认证通过 -1：认证失败）
        /// </summary>
        [SugarColumn(ColumnName = "borrow_auth_status")]
        public byte BorrowAuthStatus { get; set; }

        /// <summary>
        /// 绑定账户协议号
        /// </summary>
        [SugarColumn(ColumnName = "bind_code")]
        public string BindCode { get; set; }

        /// <summary>
        /// 用户积分
        /// </summary>
        [SugarColumn(ColumnName = "integral")]
        public int Integral { get; set; }

        /// <summary>
        /// 状态（0：锁定 1：正常）
        /// </summary>
        [SugarColumn(ColumnName = "status")]
        public byte Status { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "update_time")]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 逻辑删除(1:已删除，0:未删除)
        /// </summary>
        [SugarColumn(ColumnName = "is_deleted")]
        public byte IsDeleted { get; set; }

    }
}
